package com.wish.client;

import com.wish.datastructure.hashtable.MyHashTable;
import com.wish.datastructure.hashtable.Student;

/**
 * Created by suliucheng on 2021/4/19 13:40
 * Directions:
 */
public class MyHashTableClient {
    public static void main(String[] args) {
        MyHashTable myHashTable = new MyHashTable(4);
        myHashTable.add(new Student(1,"苏刘成"));
        myHashTable.add(new Student(2,"王宝强"));
        myHashTable.add(new Student(3,"周杰伦"));
        myHashTable.add(new Student(4,"张学友"));
        myHashTable.add(new Student(5,"周星驰"));
        myHashTable.add(new Student(6,"刘德华"));
        myHashTable.add(new Student(7,"冯小刚"));
        myHashTable.add(new Student(8,"华晨宇"));
        myHashTable.add(new Student(9,"沈腾"));
        myHashTable.add(new Student(10,"贾玲"));
        myHashTable.add(new Student(11,"关晓彤"));

        myHashTable.list();

        System.out.println(myHashTable.findById(10));
    }
}
